home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / alv.sun / alv.lha / src / Makefile-merge < prev    next >
Encoding:
Makefile  |  1992-11-08  |  3.2 KB  |  93 lines

  1. #Modify the following to point to your desired installation directories
  2. INDIR=/usr/local/alv/bin
  3. ANDIR=/usr/local/alv/doc/man
  4. FILDIR=/usr/local/alv/filters
  5.  
  6. #You might want to change this to rasfilter8to1, but ras8to1 is better!
  7. FILTER8TO1=$(BINDIR)/ras8to1
  8.  
  9. #Sensible values of CFLAGS are -g or -O
  10. #CFLAGS=-g
  11. FLAGS=-O
  12.  
  13. ##########################################################
  14. # You shouldn't need to modify anything below this point #
  15. # Type:                                                  #
  16. # 'make' to make tools merged in place                   #
  17. # 'make install' to make tools merged and install        #
  18. ##########################################################
  19.  
  20. IBS = -lsuntool -lsunwindow -lpixrect -lm 
  21.  
  22. PROGS = convert dither rasthresh winlev dsp rasregion equalise ffill \
  23.     hist im2ras ras2im ras2lw invert rasval blend rasrange halftone \
  24.     box rasinfo scr2ras winlev8 rasscale transform convolve \
  25.     ras2array array2ras hough palettetool cst rasremap scrload ras8to1 \
  26.     fconvolve
  27.  
  28. OOLOBJS = convert.o dither.o rasthresh.o winlev.o dsp.o rasregion.o \
  29.     equalise.o ffill.o hist.o im2ras.o ras2im.o ras2lw.o invert.o rasval.o \
  30.     blend.o rasrange.o halftone.o box.o rasinfo.o scr2ras.o winlev8.o \
  31.     rasscale.o transform.o convolve.o ras2array.o array2ras.o hough.o \
  32.     palettetool.o cst.o rasremap.o scrload.o ras8to1.o fconvolve.o
  33.  
  34. THEROBJS = dynamem.o matrix.o support.o
  35. ALETTEOBJS = p_confirm.o p_init.o p_notif.o p_panel.o p_event.o
  36. BJS = $(TOOLOBJS) $(OTHEROBJS) $(PALETTEOBJS)
  37.  
  38. ll: alvtools glass
  39.  
  40. lass: glass.o
  41.     cc $(CFLAGS) -o glass glass.o $(LIBS)
  42.  
  43. lvtools: $(OBJS) toolmerge.o
  44.     cc $(CFLAGS) -o alvtools toolmerge.o $(OBJS) $(LIBS)
  45.  
  46. oolmerge.o: toolmerge.c tools.h declarations.h
  47.     cc $(CFLAGS) -c toolmerge.c
  48.  
  49. onvolve.o: convolve.c defs.h support.c
  50.     cc $(CFLAGS) -DFILTERS_DIR=\"$(FILDIR)\" -c convolve.c
  51.  
  52. convolve.o: fconvolve.c defs.h support.c
  53.     cc $(CFLAGS) -DFILTERS_DIR=\"$(FILDIR)\" -c fconvolve.c
  54.  
  55. sp.o: dsp.c defs.h
  56.     cc $(CFLAGS) -DFILTER8TO1=\"$(FILTER8TO1)\" -c dsp.c
  57.  
  58. lean:
  59.     rm -f *.o *~ core
  60.  
  61. potless: clean
  62.     rm -f $(LPROGS) glass double half quarter third triple quad MANIFEST alvtools
  63.  
  64. nstall: all
  65.     install -s alvtools $(BINDIR)
  66.     install -s glass $(BINDIR)
  67.     @for i in ${LPROGS}; do \
  68.         (rm -f $(BINDIR)/$$i; ln -s $(BINDIR)/alvtools $(BINDIR)/$$i); \
  69.     done
  70.     @rm -f $(BINDIR)/double; ln -s $(BINDIR)/alvtools $(BINDIR)/double
  71.     @rm -f $(BINDIR)/half; ln -s $(BINDIR)/alvtools $(BINDIR)/half
  72.     @rm -f $(BINDIR)/quarter; ln -s $(BINDIR)/alvtools $(BINDIR)/quarter
  73.     @rm -f $(BINDIR)/third; ln -s $(BINDIR)/alvtools $(BINDIR)/third
  74.     @rm -f $(BINDIR)/triple; ln -s $(BINDIR)/alvtools $(BINDIR)/triple
  75.     @rm -f $(BINDIR)/quad; ln -s $(BINDIR)/alvtools $(BINDIR)/quad
  76.     @if test ! -d $(MANDIR)/man1; then mkdir $(MANDIR)/man1;fi
  77.     @for i in ../doc/man/man1/*; do \
  78.         (cp $$i $(MANDIR)/man1); \
  79.     done
  80.     @if test ! -d $(MANDIR)/man3; then mkdir $(MANDIR)/man3;fi
  81.     @for i in ../doc/man/man3/*; do \
  82.         (cp $$i $(MANDIR)/man3); \
  83.     done
  84.     @if test ! -d $(MANDIR)/man5; then mkdir $(MANDIR)/man5;fi
  85.     @for i in ../doc/man/man5/*; do \
  86.         (cp $$i $(MANDIR)/man5); \
  87.     done
  88.     @if test ! -d $(FILDIR); then mkdir $(FILDIR);fi
  89.     @for i in ../filters/*; do \
  90.         (cp $$i $(FILDIR)); \
  91.     done
  92.     @echo 'Programs, manual pages and filters installed'
  93.